import { Quasar } from 'quasar'
// leave the export, even if you don't use it
export default async ({ app, router, Vue }) => {
  // something to do
  const langIso = localStorage.getItem('qLang') || 'zh-hans' // do: some fn() to get language default
  try {
    await import(`quasar/lang/${langIso}`)
      .then(lang => {
        Quasar.lang.set(lang.default)
      })
  } catch (err) {
    console.log('导入quasar语言包时捕获到异常：', err)
  }
}
